<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>模块化</title>
    <script src="angularjs/angular.min.js"></script>
</head>
<!--在body范围内被angular解析-->
<body ng-app="doraApp1">


    <hr/>
    <div ng-controller="testCtrl1">
        <h3>{{name}}</h3>
    </div>
<script>


    angular.module("doraApp",[])
            .controller("testCtrl1",function($scope){
            $scope.name = "doramart";

    });

    angular.module("doraApp1",["doraApp"])
//            .controller("testCtrl1",function($scope){
//        $scope.name = "doramart22";
//     });
</script>
</body>
</html>